package org.jeecg.common.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import org.jeecg.common.serial.JsonLongSerializer;

/**
 * @author yann
 * @date 2019/12/19
 * @description: PO基类
 */
@Data
public class BaseAssignKeyPO<T extends BasePO<?>> extends BasePO<T> {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    @JsonSerialize(using = JsonLongSerializer.class )
    private Long id;

}
